using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace ReminderApp.ControlLibrary
{
    public partial class ucOptions : UserControl
    {
        public ucOptions()
        {
            InitializeComponent();
        }

        private void ucOptions_Load(object sender, EventArgs e)
        {
            pnlOption.Controls.Add(new ReminderApp.ControlLibrary.ucPopupMethod());
        }

        private void tvOptions_AfterSelect(object sender, TreeViewEventArgs e)
        {
            pnlOption.Controls.Clear();
            switch (tvOptions.SelectedNode.Name)
            { 
                case "tvPopUp":
                    pnlOption.Controls.Add(new ReminderApp.ControlLibrary.ucPopupMethod());
                    break;
                case "tvTimeScale":
                    pnlOption.Controls.Add(new ReminderApp.ControlLibrary.ucTimeScale());
                    break;
            }
        }
    }
}
